A Value of variable type. More...
#include <funknown.h>
Public Types | |
enum | { kEmpty = 0, kInteger = 1<<0, kFloat = 1<<1, kString8 = 1<<2, kObject = 1<<3, kOwner = 1<<4, kString16 = 1<<5 } |
Public Member Functions | |
FVariant () | |
FVariant (const FVariant &variant) | |
FVariant (int64 v) | |
FVariant (double v) | |
FVariant (const char8 *str) | |
FVariant (const char16 *str) | |
FVariant (FUnknown *obj, bool owner=false) | |
~FVariant () | |
FVariant & | operator= (const FVariant &variant) |
void | setInt (int64 v) |
void | setFloat (double v) |
void | setString8 (const char8 *v) |
void | setString16 (const char16 *v) |
void | setObject (FUnknown *obj) |
int64 | getInt () const |
double | getFloat () const |
double | getNumber () const |
const char8 * | getString8 () const |
const char16 * | getString16 () const |
FUnknown * | getObject () const |
uint16 | getType () const |
bool | isEmpty () const |
bool | isOwner () const |
bool | isString () const |
void | setOwner (bool state) |
void | empty () |
Data Fields | |
uint16 | type |
union { | |
int64 intValue | |
double floatValue | |
const char8 * string8 | |
const char16 * string16 | |
FUnknown * object | |
}; |
A Value of variable type.
FVariant | ( | ) | [inline] |
FVariant | ( | double | v | ) | [inline] |
~FVariant | ( | ) | [inline] |
void setInt | ( | int64 | v | ) | [inline] |
void setFloat | ( | double | v | ) | [inline] |
void setString8 | ( | const char8 * | v | ) | [inline] |
void setString16 | ( | const char16 * | v | ) | [inline] |
void setObject | ( | FUnknown * | obj | ) | [inline] |
int64 getInt | ( | ) | const [inline] |
double getFloat | ( | ) | const [inline] |
double getNumber | ( | ) | const [inline] |
const char8* getString8 | ( | ) | const [inline] |
const char16* getString16 | ( | ) | const [inline] |
FUnknown* getObject | ( | ) | const [inline] |
uint16 getType | ( | ) | const [inline] |
bool isEmpty | ( | ) | const [inline] |
bool isOwner | ( | ) | const [inline] |
bool isString | ( | ) | const [inline] |
void setOwner | ( | bool | state | ) | [inline] |
void empty | ( | ) |
double floatValue |
union { ... } |